Typescript Check If Variable Is A String