© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Julian Finkler
Full Stack Developer
You don't use the return value of the Replace method. Try this:
public static string URLify (string deviceName) { return deviceName.Replace("/", "-").Replace("&", "").Replace(" ", "-").Replace("+", ""); }