addressed comment to remove rtrim