Strip leading/trailing whitespace from cells (R parsing code)

Fixes #1132. @danknights can you please review?