Insert Substring Into String Javascript Methods For Querying