Remaking clean to be case insensitive

Remade clean function to find by lowercase and updated replace to Regexp with 'gi' flag.