Simulator of a wave in string