replaced str_replace() with ltrim()