fixes #5534 We must not allow enter quotes

Fixed the issue and pushed the code for review, please check it.