added support fo complex special characters