Acceleration of particles in spacetimes of black string