invisible character bug fixed. invisible characters now removed before processing