fixing a string bug