Added reading string on timeout based on select