actual_string can be a string or a text_value so need to make sure it's a string before using it