A better way to create attributed strings