code: private static String[] splitValueAndUnit(String encodedValueAndUnit) {
          String[] result = new String[2];
          int len = encodedValueAndUnit.length();
          int firstLetterIndex = len;
          while (firstLetterIndex > 0
                  && Character.isLetter(encodedValueAndUnit.charAt(firstLetterIndex - 1))) {
              firstLetterIndex--;
          }
          result[0] = encodedValueAndUnit.substring(0, firstLetterIndex);
          result[1] = encodedValueAndUnit.substring(firstLetterIndex);
          return result;
      }
docs: Splits a string that encodes size with unit into the size and unit substrings. Returns an
  array of two strings.
  
  @param encodedValueAndUnit a strings that represents a size with unit, trimmed and in lower
  case
  @return the first element is size, the second is unit