I thing you are trying to strip mag card control chars. If you tell us more about your implementation I can give more info about how to deal with that.
Hi @emre,
I want to make one button for discount by amount and percent. But how to strip out only 1 first or 1 last letter.
If I use above example substr(1,6) for $5, it will return empty. But if I use substr(1,2), it works.
I also try substr(1) or substr(-1), not working too.
EDIT: Ah, there is function for Length of string (.length). Great! I think I can do it now.