You can do this with the python function or with regular expressions.
MyLibrary.py
def Remove_Whitespace(instring): return instring.strip()
MySuite.txt
| *Setting* | *Value* | | Library | String | Library | ./MyLibrary.py | *Test Case* | *Action* | *Argument* | T100 | [Documentation] | Removes leading and trailing whitespace from a string. # whatever you need to do to get ${myString} | | ${tmp}= | Remove Whitespace | ${myString} # ${tmp} is ${myString} with the leading and trailing whitespace removed. | T101 | [Documentation] | Removes leading and trailing whitespace from a string.
source share