Fixed string truncating to the proper length because we're subtracting 1 from all the values in this function for some reason