changed hardcoded iteration length in checkPunct to strlen of pointer to punct for future size change