Improved the phone number detection algorithm