remove ref from string
remove ref from string