Issue #4: Input string was not in a correct format - fixed