Added rtrim() function to String wrapper object