add method for repeat string