Mountain level here: Count Emptiness
This level introduce trim method and how to get rid of leading and trailing whitespaces in texts.
Mountain level here: Count Emptiness
This level introduce trim method and how to get rid of leading and trailing whitespaces in texts.
Interesting, I was able to complete without issue.
for LUA there doesn’t seem to be a trim function, so I am looking at alternatives.
http://lua-users.org/wiki/StringTrim
type 5 might be a good implementation, however match is not working at the moment. Not sure if I should just code a simple loop function?
-HW