first and last filter is not working properly for the string

Description

first and last filter are not working properly for the string.

STR:

  1. Open Nunjucks tester.

  2. Enter below script and test.

  3. There is not showing any output. Correct output is "A".

Environment

None

Customer Info

None
Fixed

Assignee

Unassigned

Reporter

Nilesh Patel

Internal Complexity

Unknown

Internal Value

Unknown