Fully impletemented phoneNumberCheck() function.