increase version to 1.4 and some code cleanup for toRangeStr