Typescript Check If Object Is String A Primitive Data