Add check for strings passed instead of refs