def generateJobName(key):
    """
    Transcribe job names cannot contains spaces.  This takes in an S3
    object key, extracts the filename part, replaces spaces with "-"
    characters and returns that as the job-name to use
    """

    # Get rid of leading path, and replace [SPACE] with "-"
    response = key
    if "/" in key:
        response = response[1 + key.find('/'):]
    response = response.replace(" ", "-")

    return response