Why ‘Shanti, Shanti, Shanti’ at the end of prayer?

ever wondered why every prayer ends with Shanti, Shanti, Shanti? everybody knows ‘Shanthi’ means peace, so why take the trouble of saying it three times? The reason is simple, each ‘Shanti’ represents something to ward-off.