Added #replace and #replaceF - Closes #2