Removed unnecessary string check