Using AttributedString and creating an api