Refactor; use .NET classes where possible

BTW, does it make sense to pass args as strings like that in any situation?