def capitalize(text):
    """
    Returns a capitalized string.  Note that this differs
    from python's str.capitalize()/title() methods for
    cases like "fooBarBaz"
    """
    if text == '':
        return ''
    return text[0].upper() + text[1:]