setting ui for string