Updated string to ref