Improved IOManager.execute_string().

The method now handles empty strings.