Can this be replaced with string.StartsWith()?