updated get_char to add null terminator to array