Extended TextWidth function, handling tabs in s. Returns the width of the string from positions i through j.