the script was outputting the string with a new line; it's corrected now