Changed parsing of data to a StreamTransformer.
Removed trailing whitespaces.