Because the input value is a StringValue the toString and getAsString share the same method in DefaultStringValue