added trailing and nbsp invisible characters