how to convert text to string