This must return a boolean. Instead is returning a string with the extension characters.