Aded input helper to get string from CursesDialog