Add check for number of arguments to substringFrom()to