ltrim_slash and related test