Strip whitespace from image text.