Check for string instance on cstruct before doing string manipulation in desirialize for textInput and MoneyInput