def check_for_ticket_name_error(ticket_name):
    """
    Returns any error message if the ticket name is not alphanumeric, if there is an 
    invalid space in the name or the name is too long for a ticket name. If
    there is no errors it returns false. 

    :param ticket_name: a string for the ticket's name
    :return: false if no error, else returns the error as a string message
    """
    if not ticket_name.replace(' ', '').isalnum():    
        return "The name of the ticket has to be alphanumeric only"
    if (ticket_name[0] == ' ') or (ticket_name[-1] == ' '):
        return "The name of the ticket is only allowed spaces if it is not the first or last character" 
    if len(ticket_name) > 60:
        return "The name of the ticket should be no longer than 60 characters"
    return False