This doesn't clarify that it could strip more than one. How about "Strips all leading and trailing elements equal to a given value." The example should have e.g. "If $(D a = [1, 0, 1, 1]), then $(D strip(a, 1)) returns $(D [0]).)