fixed clearing string bugs