[fix] Do not trim value if it is not a string

Before this change, integers, for example, were converted to numeric strings.