<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Conversion to uppercase in a string in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Conversion-to-uppercase-in-a-string/m-p/2268620#M47117</link>
    <description>&lt;P&gt;&amp;nbsp;thanks&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;yes&amp;nbsp;&lt;SPAN&gt;the last word is not only LLC, LTD . there are nearly 100 words such kind, i started using String replace function but did not worked properly for some cases,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;initailly camel case =&amp;gt; then used below function but there nearly 100 owrds such kind&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Var.trim.toLowerCase().contains (" llc")&lt;BR /&gt;?&lt;BR /&gt;StringHandling.EREPLACE(Var.trim," Llc"," LLC")&lt;BR /&gt;:&lt;/SPAN&gt;Var.trim.toLowerCase().contains (" ltd")&lt;BR /&gt;?&lt;BR /&gt;StringHandling.EREPLACE(Var.trim," Ltd"," LTD")&lt;/P&gt; 
&lt;P&gt;: Var.trim&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can you please help how to use the lookup model for matches in detail&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks In Advance&lt;/P&gt; 
&lt;P&gt;Manish&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2019 16:50:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-18T16:50:40Z</dc:date>
    <item>
      <title>Conversion to uppercase in a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Conversion-to-uppercase-in-a-string/m-p/2268618#M47115</link>
      <description>&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;I have data in the below format,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Input&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FAMILY NURSE CARE , LLC&lt;/P&gt;&lt;P&gt;CANCER CENTER LTD&lt;/P&gt;&lt;P&gt;The output should be in camel casing, every first letter word of string should be in capital and the business extension should be completely capital, i wrote a java code for first letter caps for every word in the string, But now th ask is all the business extenions like LLC, INC should be in Capital letters&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;required output for above input&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Family Nurse Care , LLC&lt;/P&gt;&lt;P&gt;Cancer Center LTD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can any one give an idea how to achieve this output required&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks In Advance&amp;nbsp;&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 14:33:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Conversion-to-uppercase-in-a-string/m-p/2268618#M47115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-18T14:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion to uppercase in a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Conversion-to-uppercase-in-a-string/m-p/2268619#M47116</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPFSAA4"&gt;@ksingh&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you are sure that all the incoming records will have the last word as LLC, LTD etc. then you can parse the word after last space and convert them to Upper case. All the other words can be made as Initial Cap.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But if you are not sure that last word will not be LLC, LTD etc, then you will have to store the list of these words in a lookup and only for the matches, you can convert to All cap. For all the others, you can convert as Initial Cap.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I believe I had already given solution for Initial Cap for one of your old posts. If you are still facing any issue (you need to do a loop of the incoming data by breaking them to multiple records based on space to check the details), please let me know. I would prefer to use tjavarow to do this task.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 14:57:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Conversion-to-uppercase-in-a-string/m-p/2268619#M47116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-18T14:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion to uppercase in a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Conversion-to-uppercase-in-a-string/m-p/2268620#M47117</link>
      <description>&lt;P&gt;&amp;nbsp;thanks&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;yes&amp;nbsp;&lt;SPAN&gt;the last word is not only LLC, LTD . there are nearly 100 words such kind, i started using String replace function but did not worked properly for some cases,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;initailly camel case =&amp;gt; then used below function but there nearly 100 owrds such kind&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Var.trim.toLowerCase().contains (" llc")&lt;BR /&gt;?&lt;BR /&gt;StringHandling.EREPLACE(Var.trim," Llc"," LLC")&lt;BR /&gt;:&lt;/SPAN&gt;Var.trim.toLowerCase().contains (" ltd")&lt;BR /&gt;?&lt;BR /&gt;StringHandling.EREPLACE(Var.trim," Ltd"," LTD")&lt;/P&gt; 
&lt;P&gt;: Var.trim&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can you please help how to use the lookup model for matches in detail&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks In Advance&lt;/P&gt; 
&lt;P&gt;Manish&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 16:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Conversion-to-uppercase-in-a-string/m-p/2268620#M47117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-18T16:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion to uppercase in a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Conversion-to-uppercase-in-a-string/m-p/2268621#M47118</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.talend.com/t5/user/viewprofilepage/user-id/19335"&gt;@ksingh&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I believe you are looking for below solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 961px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/17398iFFF8537661E2094F/image-size/large?v=1.0&amp;amp;px=999" title="image.png" alt="image.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The main data is extracted from left most tfileinputdelimited and lookup file contain data like LLC, LTD, CORP etc.&lt;/P&gt; 
&lt;P&gt;Please note that for fourth line "Comics" is not present in lookup file and it was changed according to normal rule.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tJavarow contain the following code and it will divide the record to two part.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/17399iFED732D9D2150E8E/image-size/large?v=1.0&amp;amp;px=999" title="image.png" alt="image.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;String last = input_row.data.substring(row1.data.lastIndexOf(" ")+1);
String first= input_row.data.substring(0, row1.data.lastIndexOf(" "));

// split into words
String[] words = first.split(" ");

// capitalize each word

for (int i = 0; i &amp;lt; words.length; i++)
{
    words[i] = words[i].substring(0, 1).toUpperCase() + words[i].substring(1).toLowerCase();
}


// rejoin back into a sentence
output_row.first = String.join(" ", words);
output_row.last= last.substring(0, 1).toUpperCase() + last.substring(1).toLowerCase();&lt;/PRE&gt; 
&lt;P&gt;tMap will do the rest of the magic for you!&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/17400i23FA9BC1B2E5489C/image-size/large?v=1.0&amp;amp;px=999" title="image.png" alt="image.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hope you are happy with the results. Request you to please mark the topic as resolved.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 05:44:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Conversion-to-uppercase-in-a-string/m-p/2268621#M47118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-19T05:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion to uppercase in a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Conversion-to-uppercase-in-a-string/m-p/2268622#M47119</link>
      <description>&lt;P&gt;&lt;A href="https://community.talend.com/t5/user/viewprofilepage/user-id/19335"&gt;@ksingh&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hi Manish,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If you are happy with the details, could you please mark the topic as resolved?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 13:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Conversion-to-uppercase-in-a-string/m-p/2268622#M47119</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-19T13:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Conversion to uppercase in a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Conversion-to-uppercase-in-a-string/m-p/2268623#M47120</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;A href="https://community.talend.com/t5/user/viewprofilepage/user-id/15531"&gt;@nthampi&lt;/A&gt;&amp;nbsp; i tried and it worked, Almost my cases with that kind of format is done but in few strings i have mutliple extensions, like if string name is Manish LLC, INC then the output i got is Manish Llc, INC. but i will try to check the data whether it can be mutliple extensions to one name&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;Manish&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 13:52:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Conversion-to-uppercase-in-a-string/m-p/2268623#M47120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-19T13:52:37Z</dc:date>
    </item>
  </channel>
</rss>

