Manipulate string in memory