Added empty string handling

- Now the user will be prompted again if an empty string is provided
and a message will be shown using console.log()