feat: adds method to remove trailing space