Should it use stringstream instead?