trim() received data before parsing