Formating and changed legalStr to allow *