added 'isStr' parameter for sp.add function to indicate if it is a string