Solved some string problems