Remove duplicate chars from regex