Trims characters from beginning and end of string.
strtrim <strvar> <trimchars>
Removes all occurrences of a set of characters specified in the <trimchars> from the beginning end end of the string variable <strvar>.
src=' '#9' #include'#9' ' strtrim src ' \t' messagebox src 'result' ; '#include ' src=' #include ' strtrim src ' ' messagebox src 'result' ; '#include ' src='*;|@123***456@|;' strtrim src '*;|@' messagebox src 'result' ; '123***456' src='*;|@123***456@|;' strtrim src '*;|@123456' messagebox src 'result' ; '' src='#*;|@123***456@|;' strtrim src '*;|@' messagebox src 'result' ; '#*;|@123***456' src='*;|@123***456@|;#' strtrim src '*;|@' messagebox src 'result' ; '123***456@|;#'