Replace a symbol in Value_Template sensor (made from other sensor attribute)

I have a sensor that has many attributes, represented in this kind of data:

evRangeVscInitialHvBattEnergyx100: '66.5'

I attempt to create a Sensor that could grab the attribute value (in my case it’s 66.5) and pass it to further algorithms.
Cannot get it to work.
Here’s my config.yaml excerpt:

  - platform: template
    sensors:
      car_chargeleft_kwt:
        friendly_name: "Car Charged now, kWt"
        unit_of_measurement: "kWt"
        value_template: "{{ state_attr('sensor.car_all_info', 'evRangeVscRevisedHvBattEnergyx100') | float}}"

It returns: 0

In case I use replace('\'','') I can’t understand how to correctly replace the ’ symbol with nothing. I guess this is the root of the problem.
Please help with solution.

You can chop off the first and last characters with this:

value_template: "{{ state_attr('sensor.car_all_info', 'evRangeVscRevisedHvBattEnergyx100')[1:-1] | float}}"