<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def filename_addstring(filename, text):
 """ Add `text` to filename, keeping the extension in place For example when adding a timestamp to the filename """

    fn, ext = os.path.splitext(filename)
    return fn + text + ext