Fix logic of removing line break from retrieved entry.

Related #4 issue.
The logic of removing line break should be processed before comparing with stored value.