Was this page helpful?

String.TrimStart

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples
    string.TrimStart(text : str) : str
    

    Remove whitespace from the beginning of the string.

    Usage Restrictions

    1.9.1 or later

    Parameters

    Name Type Description
    text
    str The string value.

    Result

    A string of the original, but with whitespace at the beginning removed.

    Samples


    Output

    To trim a string at the beginning:

    {{ string.trim("   Hello World ") }} 

    Hello World
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by