Function parseTuple