Added new function for String repetitions