bug fix and tests on long strings in entry box