Fixing string bug