Modify stringRightTrim to pass new tests

stringRightTrim works as expected