trim string value before transform it in a primitive
add unit tests to testCoerceStringToPrimitive
This closes #66