adds basic sanitization to front end appending