Fixed code so to_i doesn't work right away on accident in accordance with TDD. Still throws initialize error on invalid string though.