fixed some bugs with indent and str_repeat