Trim StackTrace adaptively. Should fix android