Replace some .startsWith('>>') with explicit comparison