code: private String applyTransformations(String src)
      {
          switch (transform)
          {
              case LOWERCASE:
                  return src.toLowerCase();
              case UPPERCASE:
                  return src.toUpperCase();
              case CAPITALIZE:
                  StringBuilder ret = new StringBuilder(src.length());
                  boolean ws = true;
                  for (int i = 0; i < src.length(); i++)
                  {
                      char ch = src.charAt(i);
                      if (Character.isWhitespace(ch))
                          ws = true;
                      else
                      {
                          if (ws)
                              ch = Character.toUpperCase(ch);
                          ws = false;
                      }
                      ret.append(ch);
                  }
                  return ret.toString();
              default:
                  return src;
          }
      }
docs: Applies the text transformations to a string according to the current style.
  @param src The source string
  @return the string after transformations