trim string value before transform it in a primitive