fixed bug where rstrip was not used properly