In PB, we have a ubiquitous TRIM$ function which can remove hidden or null characters from a string
such as CHR$(0) , CHR$(32), CHR$(10) , CHR$(13), CHR$(9) as shown below
' Trim off all nulls and hidden characters from the string givenst
givenst = TRIM$(givenst,ANY CHR$(0) + CHR$(32)+ CHR$(10) + CHR$(13)+ CHR$(9))
is there a way to do this in O2 ?
i have tried LTRIM and RTRIM but they cannot remove the nulls and other hidden charcters