separator = "\.";

Does the above code actually compile? I presume you are calling the function toMinutes(String timeString)?