checking that long strings don't terminate in a slash