Remove trailing whitespace
Return memory
Append tracks to playlist if no index argument is given
Free URI after we're done with it
Remove old todo