mending3
str.charAt(str.length() -1) == ' '
thanksforallthefish
str.last() == ' '
Ruckus
str.endsWith(' ')