Replaces stringstream with to_string where appropriate.
Closes #18