def phone_chk(number):
    """Function to detect phone numbers"""
    if len(number) <= 12 and len(number) >= 6:
        import re
        regex = re.compile(
            '^\\d{3}[-\\.\\s]??\\d{3}[-\\.\\s]??\\d{4}|\\(\\d{3}\\)\\s*\\d{3}[-\\.\\s]??\\d{4}'
            )
        result = regex.match(number)
        if result:
            return 'Valid'
        else:
            return 'Not Valid'
    else:
        return 'Not Valid'
