Use replace instead of $REPLACE