removed n parameter from parseIf/parseObject
refactored String.prototype functions