Separate code for splitting arguments