Fixes bad string replacement indexes
Fix bad function name