Division by zero and non-integer issue with str_repeat