c == ' ' checked twice