def location(block):
    """Returns the location component in block in title case."""
    # The location component starts emidiately after the second space.
    sub = block[block.find('BEGIN')+6:block.find('END')-1]
    locationString = sub[sub.find(' ')+1:]

    # Make it lower case, reverse it, and make only the first letter  upper case.
    locationString = locationString.lower()[len(locationString)::-1]
    return locationString.title()