fix some string bugs