Check If Variable Is String Javascript Methods For Querying