Use partition() & strip() to find filename_tapped

This eliminates the need for namelenght.

Also, reuse the make_tableview1() function.