resource-name-sanitizer resource-name-sanitizer sanitize the given string with an appropriate pattern