Filtering Pipe (|) character and parentheses

I haven't tested if pipe characters can trigger additional OS commands in sh but just in case. Removing pipes and parentheses from user input.

Update: Pipes work if system() is calling bash. Who knows.