dont call .replace in handleEvent