check if arg is a string before trying to split