remove old-fashioned module string.replace in favor of method