special to_string for string types
compare doubles with some precison