Fixed an issue when strpos() gets an empty needle in the String class