Overrided the valueOf method