typeof variable should be a string