Replaces substr with ltrim