Added string tests. Better input arguments check.