BAMPFA-201: Trim whitespace from strings before preprocessing.