Added a method to set the text label with attributed string