new method to convert to string