Activity › Forums › Salesforce® Discussions › How to check String contains only white space characters in Apex ? Salesforce® Discussions How to check String contains only white space characters in Apex ? Posted by Kirandeep on August 28, 2020 at 8:11 AM How to check String contains only white space characters in Apex ? Sumit kumar replied 5 years, 9 months ago 4 Members · 3 Replies 3 Replies Anjali Member August 28, 2020 at 12:13 PM isAlphaSpace() : This string method will return true, if the string contain alphabet and white spaces. [adinserter block='9'] Manish Member August 28, 2020 at 3:50 PM <div aria-level=”3″ role=”heading”>Apex String Methods to Determine Character Types <div> isAlpha() : This string method will return true, if the string contain only characters. isAlphaSpace() : This string method will return true, if the string contain alphabet and white spaces. isAlphanumeric() : This string method will return true, if the string contain alphabet, numbers. </div></div> Sumit kumar Member August 30, 2020 at 4:09 PM isAlphaSpace() : This string method will return true, if the string contain alphabet and white spaces. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me