modify rule for long strings