Use _last_index_of to join as little as possible