fixed line endings for int to string conversion

used to_string