Make sure to test for the last slash