Testing getting string in curses