Better string check