Check for existence of slash before trimming