add a docstring. The method name alone just indicates the "elem.startsWith(prefix)" check, not the special length handling.