avoid allocation in string comparisoin