I should use: if ((info.length() < 16) && process.length() && !strieq(process, "*")).