@raimondz Your function only works if you're parsing a string var, however, returns "Type Mismatch" if you're parsing a string directly. Seems that the " S$[0]="" " doesn't work in that case.