use regexp for numeric string testing