fixing string bug