* a regex is used to check valid input
queue:
(to stop the setInterval() and avoid a memo leak)