remove trailing slash if no bottom text is entered