Chrome extension generates the string of specified length or calculates the length of specified string