Variation of bar strength with central velocity dispersion in spiral galaxies