Noncommutative geometry from strings and branes