Solution1: select first str as prefix, compare every char with second until not equals one. substring
* loop to the last one, then we will get common prefix.
*
* Solution2: compare first char with every str, if works, second char...
*
* use j == 0 to optimize.
*
* @author jeffwan
* @date Apr 15, 2014