Added rtrim() method