Minor fixes to argparse

Added function header for split_string()
Used mem_alloc instead of malloc in split_string()