Removing characters: We have barcode scanners that are primarily used for one specific purpose - and the default value on the scanner is programmed to insert an """ before and after reading an Employee ID (EID) from a badge, so the EID displays like this: "00000"" when it's scanned into a field.
But, we also use the same barcode readers for another purpose -- that doesn't require the input of an """. When we used infopath, for the forms that don't require the use of the """ -- I had a rule "if EID contains ""