removes leading and trailing whitespace from ibooks file