functions to string