Fix failing spec related to handling whitespace