remove useless charat
fix for issue 154 decimal mask for 2.x branch
Merge branch '1.x' into 2.x