replaces strings with UIMessages methods