fixing replace of quotes

replace method returns copy of string so it should be assigned