public String to(String field, int min, int max)
    {
         String newField = "";

        System.out.println(field.substring(0, 2));
        if(field.substring(0, 2).equals("TO"))
        {
            field = field.substring(3);

            for(int i = 1; i <= field.length(); i++)
            {
                if(isNumber(field.substring(i - 1, i)))
                {
                    newField = newField + field.substring(i - 1, i);
                }
                else
                {
                    if(field.substring(i - 1, i).equals(" "))
                    {
                        System.out.println("space");
                        //  ignore space
                    }
                    else
                    {
                        System.out.println(field.substring(i - 1, i));
                        newField = "~invalid~";
                        break;
                    }
                }
            }

        newField = "-" + newField;

        }

        return newField;

    }