issue6830: use String#startsWith and remove an old comment.