Checking if it's a string instead of .length