Semicolon support for multiple commands in a line

Also trim leading/trailing spaces.