Align with es6 for null/undefined starts|ends value and optimize fast path