Differences between JavaScript and substr() and substring() methods in .NET