Fixed bug in calling functions where case mattered.  It should not have.

Added single function to do the splitting logic between parameters and a function/variable for other functions