StringBuffer modify string