Skip the last argument of substr.