int end = value.indexOf("pt");
int end = value.indexOf("px"); if (end == -1) end = value.length();
  private int mapPixels()  {    int end = value.indexOf("pt");    String number = value.substring(0, end);    int intVal = Integer.parseInt(number);    return intVal;  }