Typescript Check If String Has Decimal