I thought it was a piece of onion because it was clear but then realised it was actually plastic

Add punctuation
"I thought it was a piece of onion because it was clear but then realised it was actually plastic."