Added functions 'prefix' and 'rem_last'