code: public String convertString(String string)
      {        
          int start;
          int end = 0;
          while ((start = string.indexOf("k", end)) > 0)
          {
              end = start + 1;
              char ch = string.charAt(start - 1);
              if ((ch != '.') && (ch != ' '))
                  continue;
              ch = string.charAt(start + 1);
              if (!Character.isUpperCase(ch))
                  continue;
              boolean isUpper = false;
              for (; end < string.length(); end++)
              {
                   ch = string.charAt(end);
                  if (!Character.isJavaIdentifierPart(ch))
                      break;
                  if (!Character.isUpperCase(ch))
                      isUpper = true;
              }
              if (!isUpper) if ((end - start) >= 3)
                  continue;
              if (end >= string.length())
                  break;
  
              String newName = convertNameToConstant(string.substring(start+1, end));
              
              string = string.substring(0, start) + newName + string.substring(end);
  
          }
          return string;
      }
docs: Do any string conversion on the file text.