finish styled text func