def fill_text(text, length, char=' '):
    """
    >>> fill_text('abc', 5, char='+')
    'abc++'
    >>> fill_text('abc', 2, char='+')
    'abc'
    """
    return (text + char * length)[:max(len(text), length)]
