That's probably in the keyboard settings (Settings -> Language & Input -> Keyboard & Input Methods, click on the settings icon next to the keyboard you're using), although I prefer Google Keyboard myself. It's much more configurable than the stock Android keyboard.