func StripSpaces : string param string targetline integer str_length strlen targetline str_length ;Get length of string while str_length > 0 ;While the string has at least one character in it... if rstrcmp targetline " " 1 ;Compare the first character in the string to a space strdelete targetline 0 1 ;If the first character is a space, delete it from the string else exitwhile ;Else exit the while loop endif endwhile return targetline ;Return modified string endfunc