use constants instead of literals for length comparisons