Clean up result text somewhat