added check for String