Add option to set text on main label
Remove trailing whitespaces