Created a function to convert a token to a string