Sanitize parsed lists to handle spurious spaces