ignore empty string in stdin