string function tests and fix for the explode method