Fixed get_str() to check for undefined return