Fixed cctype functions usage.