Bosonic strings in background massive fields