Cast input to string before spliting