Convert String to Number if Number type Pattern Provided