Updated the string class check, for a simple instanceof check.