leetcode: Valid number, two approaches
tag: String