Move code that takes mod 10 of dialed number into getDialedNumber function