removeTrailingSpacesAndSlash

Method to remove trailing whitespaces and slash ("/") from a string.

Return

The string without trailing whitespaces and slash.

Parameters

str

The string from which trailing whitespaces and slash will be removed.