int (int fromIndex, char p) { char pUpper = AsciiUtils.toUpperAscii(p); char pLower = AsciiUtils.toLowerAscii(p); for (int i = fromIndex; i < myName.length(); i++) { char c = myName.charAt(i); if (c == p || AsciiUtils.toUpperAscii(c) == pUpper || AsciiUtils.toLowerAscii(c) == pLower) { return i; } } return -1; }