Should fix crashing due to empty number input strings. Closes #17. Closes #24.