Might need special handling when line break exists in the text box 