the strtext.clear() is superfluous.