[BUGFIX] Correctly check if the property is a string