Fixed the bug in replace function
Fixed the bug in replace function

Fixed a bug where replace function simply added the replace word to the
end of the text when it failed to find the original word that was to be
replaced.

akashdeepsingh9988/Simple-Java-Text-Editor,pH-7/Simple-Java-Text-Editor