Some C# extension methods that help with string parsing