`nil` responds to `to_s`, so it's probably better to just make this `last_filename.to_s` as the #{} will call `to_s` anyway and using `to_s` directly will prevent another string from being created.