UPDATE: Repaired reading whole line

Added cin.ignore() and changed the code to use function
std::readline(cin, string)  and together it works.