removing unneccesary spaces, sub1 to - 1, printf to display