I am taking input in the form of a string in a google spreadsheet (through forms). I need to make sure that there are no white spaces before and after this string...
I've tried using Javascript command
mystring = mystring.replace(/(^\s+|\s+$)/g,' ');
but it doesnt seem to work here.
Please help