Use Python's str.strip() instead of kludgy regular expressions and use split/join to handle multi-value fields more cleanly.