fixed bug in tag_expressions.rb

while loop looked for <= accumulate length instead of <