fixed seg fault from using isalpha on a string