resolving some string bugs