Waves simulation in a hanging string