Lib: abs() and string.replace()

I add abs() function and fix string.replace(). Hope it will be useful :D