use isspace function for netpbm