Convert string tests to arithmetic expressions

[ ENHANCEMENT ]  All string testing for integers are now done using
an arithmetic expression eg. ((..))

[ ENHANCEMENT ]  Simplified some arithmetic expressions