Stringstream was probably overkill