Changed isStringAURL function to use substring method instead of startsWith. Error fixed.