Improve performance in StringLiterals.

Gives an overall performance increase of 18% according to my measurements. Maybe the upcoming changes in Parser will solve the same problem? In that case this change is redundant.