added interactive functionality (ls, q), strips input of '-'s