rstrip didn't work as expected, changed to replace
Merge pull request #49 from SlrG/master

rstrip didn't work as expected, changed to replace