Added handedness for pitchers and batters, and handled blank numbers.
Refactored out a function.