Replacing question marks in rows in memory