cleanup regex of module name