Added in str.replace for alerts in routes