method arrayToValues(String array)