def isNum(str) try double(str) return true catch return false end end