import re


def checkTicketName(t):
    """
    :param t: user entered ticket

    Takes the ticket and runs it through a regex to see if it meets the required specifications.
    Also checks that the ticket does not start or end with a space
    If it does then return true, if it does not then return false.
    """
    if bool(re.match('^[a-zA-Z0-9" "]+$', t) and (6 <= len(t) <= 60) and not t.startswith(" ") and not t.endswith(" ")):
        return True
    else:
        return False