Remove useless comments.
Throw exception when input is empty.