Play touch tone when clicking button
Simplify formatting algorithm for easier correctness