fix bug on isref method of String