trim post and get values