Strip whitespace from postgres error messages before returning them