Strip whitespaces from image URLs