how to truncate extra space in the end of string code example
Example: Which method in an be used to remove any whitespace from both the beginning and the end of a string?
str = "hello "
print(str.trim())
str = "hello "
print(str.trim())