Typescript Check If Value Is String A Primitive Type