Changed: last slash is removed.
Added: tests for removing ending slash.
Dev. checkpoint: Touchups.