By default, Google filters explicit images by utilizing moderate filtering. Since it is doubtful you were looking for explicit language in the first place, you can filter out explicit text as well. You must have cookies enabled on your browser in order for this to work.
1. Go to Google.
2. Next to the right of the textbox, click Preferences.
3. In the Safe Search Filtering section, select the Use strict filtering radio button.
4. Click Save Preferences.