leetcode - palindrome partition : minor update