Extract #string_condition method