fixed after_value_text to after_value_string

the varchar in the case statement had _text instead of _string. fixed.