Added string utilities.
Made option parsing more robust and flexible.