String performance techniques