math.floor is the more intuitive solution, convert the number into a string once you’ve finished manipulating the number.
math.floor