Checking for strings when converting to booleans