Phone mask - improved ninth digit

Improved the mask function with nine or eight digits, avoiding the use of numbers 8/9 in the class attribute.