Added verify() to verifies user's input before passing to convert()